//
//  ZooUtil.m
//  ZooNgonDoiOS
//
//  Created by Trung sound on 6/20/12.
//  Copyright (c) 2012 Personal. All rights reserved.
//

#import "ZooUtil.h"

@implementation ZooUtil

+(NSString *) LoadTokenValue {
    
    NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
    NSString *tokenValue = [defaults objectForKey:TOKEN_VALUE];
    return tokenValue;
}

+(NSString *) LoadTokenSecretValue {
    
    NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
    NSString *tokenSecretValue = [defaults objectForKey:TOKEN_SECRET_VALUE];
    return tokenSecretValue;
}

+(void) SaveTokenKey:(NSString *) tokenValue tokenSecretValue:(NSString *) tokenSecretValue {
    NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
    [defaults setObject:tokenValue forKey:TOKEN_VALUE];
    [defaults setObject:tokenSecretValue forKey:TOKEN_SECRET_VALUE];
    [defaults synchronize];
}
@end
